#include<stdio.h>

#define N 5

int main()

{  int i,j,t,score[N];

   for(i=0;i<N;i++)

      scanf("%d",&score[i]);

   for(i=0;i<=N-1;i++)

       for(j=i+1;j<N;j++)

          if(score[i]<score[j])

          {
               t=score[i];

               score[i]=score[j];

               score[j]=t;

          }
   for(i=0;i<N;i++)

      printf("%d",score[i]);

   printf("\n");

   return 0;
}
